package com.kuwou.workobject.pojo.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor

@TableName("music_items")
public class Music {

    @TableId(value = "id", type = IdType.AUTO)
    private int id;

    @TableField("`rank`")
    private String rank;

    @TableField("`name`")
    private String name ;

    @TableField("`singer`")
    private String singer;

    @TableField("`time`")
    private String time ;

    @TableField("`rank_list_id`")
    private int rankListId;

    @TableField("`channel_id`")
    private int channelId;

    public Music(int channelId, int rankListId, String time, String singer, String name, String rank) {
        this.channelId = channelId;
        this.rankListId = rankListId;
        this.time = time;
        this.singer = singer;
        this.name = name;
        this.rank = rank;
    }

    public Music(String rank, String name, String singer, String time) {
        this.rank = rank;
        this.name = name;
        this.singer = singer;
        this.time = time;
    }
}
